<?php
class Silk_Site extends Silk_Model
{

    protected $_objects = null;

    protected $_metas = null;

    protected $_translations = null;

    protected $_routes = null;

    protected $_terms = null;

    protected $_term_taxonomies = null;

    protected $_types = null;

    protected $_data = array(
        'site_id'     => null,
        'name'        => null,
        'description' => null,
        'domain'      => null
        );

    protected $_validators = array(
	'Site Name' => array('NotEmpty', 'fields' => 'name', 'messages' => VALIDATION_FIELD_REQUIRED),
	'Site Domain' => array('NotEmpty', 'fields' => 'domain', 'messages' => VALIDATION_FIELD_REQUIRED),
    );

    public function getFQDN(){
	return 'http://' . $this->domain;
    }
}

 ?>